package yanyi.community.mapper;

import yanyi.community.model.Question;

import java.util.List;
import java.util.Map;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    int insertSelective(Question record);

    Question selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Question record);

    int updateByPrimaryKeyWithBLOBs(Question record);

    int updateByPrimaryKey(Question record);

    List<Question> findAll(Map<String,Object> map);
    List<Question>findByPage(int pageNum,int pageSize);

    int updateViewCount(Question question);
    int updateCommentCount(Question question);

    List<Question> selectRelated(Question question);
}